package com.linian.pushforcampus.controller;


import com.linian.pushforcampus.domain.PushConfigure;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HomeController {
    @Autowired
    private PushConfigure pushConfigure;
    @RequestMapping("/")
    public String redirectToExternalWebsite() {
        return "redirect:"+pushConfigure.getCAMPUSAPYHOME();
    }
}
